<?php
$url = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on'? 'https://': 'http://';
$url .= $_SERVER['SERVER_NAME'];
$domain = $url.'/ver1';
$mediaDomain = $url.'/uploads';
return array(
	
    // general config
    'domain' => $domain,
    'theme' =>  'classic',
    
    'debugMode' => true,
    'maintenanceMode' => false,
    'captchaMode'=> 'default', // value: default, math, mathverbal, logical, words
    'geocoderMode'=>false, // use Geocoder API in address
    
    // user registration
    'cookieLoginDuration'=>3600 * 24 * 7,
    'randomPasswordMode' => false,
    'defaultPassword' => 'domain1234', // default password when randomPasswordMode is false 
    'verificationCodeSalt'=>'domainname',
    'verificationCodeExpiry'=>'3',  // default verification code expiry in days
    'userOptInMode' => true,	// verify user email during registration

    'defaultCurrency' => 'MYR',
    'defaultCountryCode' => 'MY',
    'defaultLanguage' => 'en',
    'languageOption' => array('en', 'zh_cn'),
    
    'dateFormat' => 'm/d/Y',	// used for date validation (PHP format), default: 'm/d/Y' example: 01/02/2013
    'timeFormat' => 'H:i:s',	// used for time validation (PHP format), default: 'H:i:s' example: 01:01:01
    'dateFormatRule' => 'MM/dd/yyyy', 	// used for date validation rule (CDateTimeParser), default: 'MM/dd/yyyy' example: 01/02/2013
    'timeFormatRule' => 'HH:mm:ss', 	// used for date validation rule (CDateTimeParser), default: 'HH:mm:ss' example: 01:01:01
    'jsDateFormat' => 'mm/dd/yy', // used for jui date picker (JS format), default: 'mm/dd/yy' example: 01/02/2013
    'jsTimeFormat' => 'HH:MM:ss', // used for jui time picker (JS format), default: 'mm/dd/yy' example: 01:01:01

    'logUserActivityMode'=>true, // log user add/update/delete activity
    'logBrowserMode'=>true, // log user browser info/ IP address etc
    
    'maxAvatarSize'=>1024 * 1024 * 1, // 1 MB
    'maxImageSize'=>1024 * 1024 * 2, // 2 MB
    'maxFileSize'=>1024 * 1024 * 10, // 10 MB
    'imageStorage'=>'localhost', // options: 'localhost', 'flickr'
    
    'imageSquareDimensions'=>'75x75',
    'imageLargeSquareDimensions'=>'160x160',
    'imageThumbnailDimensions'=>'200x200',
    'imageSmallDimensions'=>'240x240',
    'imageMediumDimensions'=>'320x320',
    'imageOriginalDimensions'=>'640x640',
    
    'relativeMediaPath'=>'../uploads',
    'mediaDomain'=>$mediaDomain,
    'imagePath' => $mediaDomain . '/images',
    'avatarPath'=> $mediaDomain.'/avatars',
    'mediaPath' => $mediaDomain . '/medias',
    'templatePath' => $mediaDomain . '/templates',
    'jsonPath'=>$mediaDomain.'/data/json',
    
    'userReturnUrl'=>'user/site/index',
    'merchantReturnUrl'=>'merchant/site/index',

    // meta config
    'title' => 'MP Connect', // default meta title
    'defaultMetaDescription' => 'Website description', // default meta description
    'defaultMetaKeywords' => 'Website keywords',// default meta keywords

    // item
    'defaultPageSize' => 12,

    'companyName'=>'mTouche International Sdn. Bhd.',

    // mail config
    'emailMode' => true, // enable send email
    'defaultEmail' => 'no-reply@domainname.com',
    'defaultSender' => 'no-reply',
    'adminEmail' => 'waichong.loo@mtouche.com',
    'adminName' => 'Admin',
    'supportEmail' => 'support@domainname.com', // this is used in error pages
    'supportName' => 'Tech Support',
    'notificationEmail'=>'notification@domainname.com',
    'notificationName'=>'Notification',
    'mailSubjectPrefix' => 'domainname.com: ',
    
    // social urls
    'facebookUrl'=>'http://www.facebook.com/domainname',
    'googlePlusUrl'=>'http://www.google.com/+domainname',
    'twitterUrl'=>'http://www.twitter.com/domainname',
    'feedUrl'=>'http://www.domainname.com/feed',
);